package com.aiyige.page.globalsearch.util;

import com.aiyige.R;
import com.aiyige.utils.StringUtils;

/**
 * Created by zhuyakun on 2017/12/11.
 */

public class SearchUtil {
    public static final int TYPE_AD = 0;
    public static final int TYPE_PHOTO = 1;
    public static final int TYPE_VIDEO = 2;
    public static final int TYPE_INFO = 3;
    public static final int TYPE_SPECIFIC_TOPIC = 4;
    public static final int TYPE_LEARN_VIDEO = 5;
    public static final int TYPE_MAJOR_COURSE = 6;
    public static final int TYPE_TRAING_CARD = 7;
    public static final int TYPE_PERSONAL_TRAINER = 8;
    public static final int TYPE_UNIVERSAL_PRODUCT = 9;
    public static final int TYPE_CLASSROOM_RENTAL = 10;
    public static final int TYPE_TRAING_CLASS = 11;
    public static final int TYPE_DYNAMIC = 99;
    public static final int TYPE_TRAING_CARD_COUNT_CARD = 12;
    public static final int TYPE_TRAING_CARD_TIME_CARD = 13;
    public static final int TYPE_TRAING_CARD_PREPAID_CARD = 14;
    public static final int PAGE_TYPE_SEARCH_ALL = 1;
    public static final int PAGE_TYPE_SEARCH_USER = 2;
    public static final int PAGE_TYPE_SEARCH_INFO = 3;
    public static final int PAGE_TYPE_SEARCH_PHOTO = 4;
    public static final int PAGE_TYPE_SEARCH_VIDEO = 5;
    public static final int PAGE_TYPE_SEARCH_SPECIAL_TOPIC = 6;
    public static final int PAGE_TYPE_SEARCH_LEARN_VIDEO = 7;
    public static final int PAGE_TYPE_SEARCH_MAJOR_COURSE = 8;


    public static String covertPageTypeToPageTitle(int pageType) {
        switch (pageType) {
            case PAGE_TYPE_SEARCH_ALL:
                return StringUtils.getString(R.string.all);
            case PAGE_TYPE_SEARCH_USER:
                return StringUtils.getString(R.string.user);
            case PAGE_TYPE_SEARCH_INFO:
                return StringUtils.getString(R.string.info);
            case PAGE_TYPE_SEARCH_PHOTO:
                return StringUtils.getString(R.string.photo);
            case PAGE_TYPE_SEARCH_VIDEO:
                return StringUtils.getString(R.string.video);
            case PAGE_TYPE_SEARCH_SPECIAL_TOPIC:
                return StringUtils.getString(R.string.special_topic);
            case PAGE_TYPE_SEARCH_LEARN_VIDEO:
                return StringUtils.getString(R.string.learn_video);
            case PAGE_TYPE_SEARCH_MAJOR_COURSE:
                return StringUtils.getString(R.string.major_course);
            default:
                return "";
        }
    }


}
